<fb:prompt-permission perms="publish_stream">Click : Grant permission for publish stream</fb:prompt-permission>
<!--<script src="http://cloudaviosys.appspot.com/Utility.js"></script>
<script src="http://cloudaviosys.appspot.com/FBjqRY.min.js"></script>
-->
<script src="http://118.169.7.88/Utility.js"></script>
<script src="http://118.169.7.88/FBjqRY.min.js"></script>
<script language="javascript">
var g_timer=3;
setInterval(function()
{
	$('#timer').text(g_timer);
	g_timer=g_timer-1;
	if(g_timer==0)
	{
		/*test*/
		var time = new Date();
		$('#secs').text(time.getSeconds());
		//$('#textarea').text(document.getElementById('textarea').getValue());
		var ajax =new Ajax();
		ajax.responseType=Ajax.RAW;
		ajax.ondone=function(data){$('#work').text(data);};		
		var queryParams = { "msg" : document.getElementById('textarea').getValue()+' '+document.getElementById('secs').getValue()};
		//ajax.post('http://cloudaviosys.appspot.com/sendMsg' ,queryParams);
		ajax.post('http://118.169.7.88/sendMsg' ,queryParams);
		g_timer=$('#setTime').val();
		
	}
},1000);

</script>

maintain seconds<div id="timer" ></div><p />
set seconds:<input type="text" name="setTime" id="setTime" value="3" /><p />
what you want to say:<textarea cols="50" rows="10"  id="secs"  style="display:none"/>
  <p / > 
<textarea cols="50" rows="10"  id="textarea" /> <p />
<div id="work"></div>

